module.exports = {
  module: {
    rules: [
      {

        test: /\.(png|jpg|gif|jpeg|ttf)$/,
        use: [{
          loader: 'url-loader',
          //loader: 'file-loader',
          options: {
            esModule: false, // 这里设置为false
            name: '[name].[ext]',
            limit: 10240
          }
        }]

      },
    ],
  },
  dev:{
    assetsSubDirectory:'static',
    assetsPblicPath:'/',
    proxyTable:{
      '/api':{
        target:'http://127.0.0.1:8888/api/private/v1/',
        changeOrigin:true,
        pathRwrite:{
          '^/api':''
        }
      }
    }
  }
};
